﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title></title>
</head>
<body>
    <div></div>
    <script src="http://cdn.bootcss.com/zepto/1.1.4/zepto.min.js" type="text/javascript"></script>
    <script src="https://cdn.bootcss.com/axios/0.18.0/axios.min.js"></script>
    <script src="../asset/js/weixin.js"></script>
    <script type="text/javascript">
        if (weixin.getQueryString("code") == null) {

            window.location.href = weixin.getBaseAuthUrl("http://www.shtraining.net/wxdemo/photos/useweixin.html");
        }
        
        $(document).ready(function () {

            weixin.getOpenId(function (arg) { console.log(arg); }, function (arg) { console.log(arg.response.data.ExceptionMessage); });
        });
    </script>
</body>
</html>